package cn.gson.springboot.model.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

@Mapper
public interface InhosptialRegsiterMappers {

	    //住院登记记录的联合查询
		public JSONArray findRegRecord(@Param("clinicname")String clinicname,
				@Param("hospid")String hospid);
		
		//新增住院登记表
		public void AddHospReg(@Param("hosp_id")String hospid,
				@Param("clinic_id")Integer clinicid,
				@Param("user_id")Integer userid,
				@Param("use_user_id")Integer use_userid,
				@Param("hosp_people")String hosppeople);
		
		//查询出院的记录
		public JSONArray  selectOutHospRecord2(@Param("clinicname")String clinicname,
				@Param("outid")Integer outid);
		//用于欠费
		public JSONArray selectOutHospRecord();
		
		//查询病例记录
		public JSONArray selectHospCase(@Param("clinicname")String clinicname);
		
		//结算押金时，查询押金大于0的信息
		public JSONArray selectOutHospReturnRecord();
		
		//医生站的病人信息，和登录人是否是这个主治医生有关系   
		public JSONArray findRegRecordAndDoctor(@Param("doctorname")String doctorname);
}
